package com.tensquare.test.spit.dao;

import com.tensquare.test.spit.pojo.Recruit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 数据访问接口
 * @author Administrator
 *
 */
public interface RecruitDao extends JpaRepository<Recruit,String>,JpaSpecificationExecutor<Recruit>{
    public List<Recruit> findTop6ByStateOrderByCreatetimeDesc(String state);//where State =?order by createTime
    public List<Recruit> findTop6ByStateNotOrderByCreatetimeDesc(String state);//where State !=0(这里用state) order by createTime
}
